Main Page   File List  

[a]ConnectRequest.h

00001 // Connection Request
00002 
00003 /* Support Function */
00004 static void connect(void) {
00005 
00006          /* Print out which device is receiving the String from NET module!! */
00007         if(IsMaster_Value())
00008                 vccPrintPdxDebugInfo("%_START_ MASTER : GBI -connect() FIRST CONNECT_REQUEST to LL %_END_");
00009         else
00010                 vccPrintPdxDebugInfo("%_START_ SLAVE  : SHOULDN'T GET HERE!!! %_END_");
00011 
00012         /*L2CA_Packet L2CA_packet_out;*/
00013         /* Prepare Connection Request Tag and Contents. */
00014         L2CA_packet_out.Service.__unionTag = L2CA_Service_Union_Connect_tag;
00015         L2CA_packet_out.Service.__union.Connect.__unionTag = L2CA_Connect_Union_Request_tag;
00016 
00017         L2CA_packet_out.SourceID = 0x02;
00018         L2CA_packet_out.Service.__union.Connect.__union.Request.PSM = 0x3; /* Target PSM provided for the connection */
00019         
00020         L2CA_packet_out.Service.__union.Connect.__union.Request.BD_ADDR.LAP = 0x123456;
00021         L2CA_packet_out.Service.__union.Connect.__union.Request.BD_ADDR.UAP = 0x12;
00022         L2CA_packet_out.Service.__union.Connect.__union.Request.BD_ADDR.NAP = 0x0;
00023         
00024         /* Send packet to LL and other device. */
00025         L2CA_Packet_Out_Post(&L2CA_packet_out);
00026 
00027          /* Print out which device is receiving the String from NET module!! */
00028         if(IsMaster_Value())
00029                 vccPrintPdxDebugInfo("%_START_ MASTER : GBI -connect() ->sent [ConnectRequest] to LL %_END_");
00030         else
00031                 vccPrintPdxDebugInfo("%_START_ SLAVE  : GBI -connect() SHOULDN't GET HERE!!! %_END_");
00032 }

Generated on Sun May 12 19:02:34 2002 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002